package cn.tom.tool;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class Log {
    private Logger logger = LoggerFactory.getLogger(Log.class);

    public void doA() {
        logger.trace("trace 1");  //跟踪 级别最低
        logger.debug("Debug 2");  //调试
        logger.info("info 3");  //普通信息
        logger.warn("warn 4");  //警告 普通的错误
        logger.error("error 5");   //严重错误
    }
}
